{extend name="base_iframe" /}


{block name="body"}


<div>

	<!-- 选项卡 -->
	<ul class="nav nav-tabs" role="tablist" form-data="basics">
		<li role="presentation" class="active"><a href="#basics" aria-controls="basics" role="tab" data-toggle="tab">基本信息</a></li>
		<li role="presentation"><a href="#details" aria-controls="details" role="tab" data-toggle="tab">详细信息</a></li>
		<li role="presentation"><a href="#pwd" aria-controls="pwd" role="tab" data-toggle="tab">修改密码</a></li>
	</ul>

	<!-- 内容 -->
	<div class="tab-content">
	<!-- 基本信息 -->
	<div role="tabpanel" class="tab-pane active" id="basics">
		<form class="form-horizontal basics"  method="post" >
			<input type="hidden" name="id" value="{$data.id}"/>
			<input type="hidden" name="scene" value="editCommon"/>

			<div class="row box-ota-info">
				<div class="col-md-12">
					<div class="box-body">

						<div class="form-group">
							<div class="col-sm-2"></div>
						</div>

						<div class="form-group">
							<label class="col-sm-2 control-label">帐号</label>
							<div class="col-sm-8">
							<input type="text" class="form-control" name="username" placeholder="请输入用户帐号" value="{$data.username}" />
							</div>
						</div>

						<div class="form-group">
							<label class="col-sm-2 control-label">状态</label>
							<div class="col-sm-8">
								<select class="form-control" name="status">
									<option value="1" {$data.status? 'selected' : ''}>启用</option>
									<option value="0" {$data.status? '' : 'selected'}>禁用</option>
								</select>
							</div>
						</div>

						<div class="form-group">
							<label class="col-sm-2 control-label">能否删除</label>
							<div class="col-sm-8">
								<select class="form-control" name="is_delete">
									<option value="1" {$data.is_delete? 'selected' : ''}>能</option>
									<option value="0" {$data.is_delete? '' : 'selected'}>否</option>
								</select>
							</div>
						</div>

					</div>
				</div>
			</div>
		</form>
	</div>
	<!-- 详细信息 -->
	<div role="tabpanel" class="tab-pane" id="details">
		<form class="form-horizontal details"  method="post" >
			<input type="hidden" name="id" value="{$data.id}"/>
			<input type="hidden" name="scene" value="editDetailed"/>

			<div class="row box-ota-info">
				<div class="col-md-12">
					<div class="box-body">

						<div class="form-group">
							<div class="col-sm-2"></div>
						</div>

						<div class="form-group">
							<label class="col-sm-2 control-label">真实姓名</label>
							<div class="col-sm-8">
								<input type="text" class="form-control" name="realname" placeholder="请输入真实姓名" value="{$data.realname}" />
							</div>
						</div>

						<div class="form-group">
							<label class="col-sm-2 control-label">邮箱</label>
							<div class="col-sm-8">
								<input type="text" class="form-control" name="email" placeholder="请输入邮箱" value="{$data.email}" />
							</div>
						</div>

						<div class="form-group">
							<label class="col-sm-2 control-label">电话</label>
							<div class="col-sm-8">
								<input type="text" class="form-control" name="mobile" placeholder="请输入联系电话" value="{$data.mobile}" />
							</div>
						</div>

						<div class="form-group">
							<label class="col-sm-2 control-label">备注</label>
							<div class="col-sm-8">
								<textarea class="form-control" name="remark" rows="5">{$data.remark}</textarea>
							</div>
						</div>

					</div>
				</div>
			</div>
		</form>
	</div>
	<!-- 修改密码 -->
	<div role="tabpanel" class="tab-pane" id="pwd">
		<form class="form-horizontal pwd"  method="post" >
			<input type="hidden" name="id" value="{$data.id}"/>
			<input type="hidden" name="scene" value="editPassword"/>

			<div class="row box-ota-info">
				<div class="col-md-12">
					<div class="box-body">


						<div class="form-group">
							<div class="col-sm-2"></div>
						</div>

						<div class="form-group">
							<label class="col-sm-2 control-label">旧密码</label>
							<div class="col-sm-8">
								<input type="password" class="form-control" name="old_password" placeholder="请输入旧密码" value="" />
							</div>
						</div>

						<div class="form-group">
							<label class="col-sm-2 control-label">密码</label>
							<div class="col-sm-8">
								<input type="password" class="form-control" name="password" placeholder="请输入密码" value="" />
							</div>
						</div>

						<div class="form-group">
							<label class="col-sm-2 control-label">确认密码</label>
							<div class="col-sm-8">
								<input type="password" class="form-control" name="confirm_password" placeholder="请输入确认密码" value="" />
							</div>
						</div>

					</div>
				</div>
			</div>
		</form>

	</div>
</div>

</div>

{/block}

{block name="script"}
<script type="text/javascript" src="__AJS__/admin_user/edit.js"></script>
{/block}